class Solution {
public:
    void moveZeroes(vector<int>& nums) 
    {
        int slow=0;
        for(int fast=0;fast<nums.size();fast++)
        {
            if(nums[fast]!=0)
            {
                int tmp=nums[fast];
                nums[fast]=nums[slow];
                nums[slow]=tmp;
                slow++;
            }
        }


    }
};
